package com.lj.config;

import com.lj.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "PROVIDER-SERVER",fallback = Fallback.class)
public interface UserFeign {

    @RequestMapping("/user/find/{id}")
    User selectUser(@PathVariable("id") String id);

}
